Ingest
Ingest AI calls
Ingest a batch of AI records (limited to max 2000 per request) — model calls and non-LLM cost items, told apart by record_kind (omitted means llm_call). Records are processed asynchronously; a record with the same id is deduplicated on storage.
POST
Ingest AI calls
Authorizations
Body
application/json
AI calls payload.
Required array length:
1 - 2000 elementsType of usage record. Defaults to llm_call when omitted.
- llm_call: Model invocation with token usage.
- cost: Non-LLM cost item; provider and model identify the vendor and item, and usage_extra carries the quantity.
Available options:
llm_call, cost Example:
"llm_call"
Ingest AI calls

